package com.tiancheng.onecode.trade.enums;

import com.tiancheng.onecode.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: kellen
 * @Description: 交易接口枚举
 * @Date: create in 2024/12/9 15:59
 */
@Getter
@AllArgsConstructor
public enum TradeInterfaceEnums implements BaseEnum<String> {
    // 授权
    auth_token("/trade-auth/auth/loginIn/appAccessToken", "应用授权"),

    // 订单
    order_create("/trade-order/open/create", "创建订单"),
    order_close("/trade-order/open/close", "关闭订单"),
    order_pay("/trade-order/open/pay", "订单支付"),
    order_refund("/trade-order/open/refund", "订单退款"),
    order_verification("/trade-order/open/verification", "订单核销"),

    // 商户
    merchant_upload("/trade-merchant/open/merchantPayReg/upload", "商户证件资料上传"),
    merchant_upload_delete("/trade-merchant/open/merchantPayReg/deleteFile", "商户证件资料删除"),
    merchant_upload_query("/trade-merchant/open/merchantPayReg/queryFileList", "商户证件资料查询"),
    merchant_query_register_merchant("/trade-merchant/open/merchantPayReg/queryByShopLic", "查询已进件的商户"),
    merchant_query_register_merchant_status("/trade-merchant/open/merchantPayReg/queryMerchantRegStatus", "查询已进件的商户状态"),
    merchant_branch_bank_list("/trade-merchant/open/merchantPayReg/branchBankList", "所属支行查询接口"),
    merchant_register_merchant("/trade-merchant/open/merchantPayReg/registerMerchant", "商户注册"),
    merchant_register_merchant_new("/trade-merchant/open/merchantPayReg/registerMerchantNew", "商户注册-最新版"),
    //merchant_complex_upload("/trade-merchant/open/merchantPayReg/complexUpload", "商户详细资料上传"),
    merchant_region_data("/trade-merchant/open/merchantPayReg/regionData", "获取最新省市区以及行业数据列表"),
    merchant_get_region("/trade-merchant/open/merchantPayReg/getRegion", "根据分级编码查询地区列表"),
    merchant_query_region_by_codes("/trade-merchant/open/merchantPayReg/queryRegionByCodes", "根据编码查询地区列表"),
    merchant_mcc_list("/trade-merchant/open/merchantPayReg/mccList", "行业信息查询"),
    merchant_mcc_query_by_code("/trade-merchant/open/merchantPayReg/queryMccByCode", "根据编码查询行业信息查询"),
    merchant_request_account_verify("/trade-merchant/open/merchantPayReg/requestAccountVerify", "发起对公账户验证申请"),
    merchant_company_account_verify("/trade-merchant/open/merchantPayReg/companyAccountVerify", "发起对公账户金额验证"),
    merchant_agreement_sign("/trade-merchant/open/merchantPayReg/agreementSign", "前台签约接口"),
    merchant_account_change("/trade-merchant/open/merchantPayReg/accountChange", "变更-商户账户信息变更"),
    merchant_account_change_agreement_sign("/trade-merchant/open/merchantPayReg/accountChangeAgreementSign", "变更-商户账户信息变更-前台签约"),
    merchant_cert_change_upload("/trade-merchant/open/merchantPayReg/certChangeUpload", "变更-证件变更文件上传"),
    merchant_merchant_cert_change_submit("/trade-merchant/open/merchantPayReg/merchantCertChangeSubmit", "变更-商户证件变更提交"),
    merchant_legal_cert_change_submit("/trade-merchant/open/merchantPayReg/legalCertChangeSubmit", "变更-商户证件变更提交"),
    merchant_id_photo_type("/trade-merchant/open/merchantPayReg/idPhotoType", "证件照类型"),
    merchant_merchant_type("/trade-merchant/open/merchantPayReg/merchantType", "商户类型"),
    merchant_settle_rule("/trade-merchant/open/merchantPayReg/setSettleRule", "设置商户抽佣比列"),

    // 结算
    ;

    /**
     * 接口地址
     */
    private final String code;
    /**
     * 接口名称
     */
    private final String name;
}
